-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
karmadactl cordon&uncordon uses factory to access cluster #2611
karmadactl cordon&uncordon uses factory to access cluster #2611
Conversation
71e8b26
to
f916bf6
Compare
Signed-off-by: helen <helenfrank@protonmail.com>
f916bf6
to
be4b3c8
Compare
flags.BoolVar(&opts.DryRun, "dry-run", false, "Run the command in dry-run mode, without making any server requests.") | ||
flags.StringVar(defaultConfigFlags.KubeConfig, "kubeconfig", *defaultConfigFlags.KubeConfig, "Path to the kubeconfig file to use for CLI requests.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These code comes multiple times, we may extract them as one function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @carlory can we extract these duplicated codes ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll solve this problem after all my pr's are incorporated.
other LGTM, cc @lonelyCZ |
thanks, I will review it tomorrow. |
Thanks @helen-frank , I just tested it that worked fine. /lgtm /cc @lonelyCZ |
Thanks @helen-frank /approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
on behalf of @XiShanYongYe-Chang who is on vocation and will get back at the end of this month.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lonelyCZ, RainbowMango The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
- karmada-io#2611 Remove apiutil.NewDiscoveryRESTMapper, use DynamicRESTMapper by default for cache Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
Signed-off-by: helen helenfrank@protonmail.com
What type of PR is this?
/kind feature
Which issue(s) this PR fixes:
Part of #2349
Special notes for your reviewer:
Test
Does this PR introduce a user-facing change?: